<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" template="../template_back.xhtml">
  
  <ui:define name="content">
  
    <h:form id="contentForm">
  
    
      <h:panelGrid columns="1" rows="1">
      
        <h:outputText value="Edition de la catégorie" />
        <p:inputText id="title" value="#{categoryController.currentCategory.title}" required="true"/>
        <h:message for="title"></h:message>
        
      </h:panelGrid>
      <p:commandButton action="#{categoryController.edit1}" value="Enregistrer les modifications">
      	<f:param name="categoryId" value="#{categoryController.currentCategory.id}"/>
      </p:commandButton> 
      <h:messages globalOnly="true"/>
      
    </h:form>  
  
  </ui:define>
  
</ui:composition>
